import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import store from "./store"

// 标题组件
import SubTitle from "./components/SubTitle/index"
Vue.component('SubTitle', SubTitle)
// 登录弹窗组件
// import Authorize from "./components/Author/Authorize"
// Vue.component('Authorize', Authorize)

import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

import { webSrc, imageOss,pageckForIn, timeToChat, timeToDate, timeFormat, author, toChat, setChat, getStorage, prePage, bcadd, bcsub, bcmul, bcdiv } from "@/common/mothed.js";
Vue.prototype.webSrc = webSrc;
Vue.prototype.$imageOss = imageOss;
Vue.prototype.$pageckForIn = pageckForIn;
Vue.prototype.$timeToChat = timeToChat;
Vue.prototype.$TimeToDate = timeToDate;
Vue.prototype.$TimeFormat = timeFormat;
Vue.prototype.$author = author;
Vue.prototype.$toChat = toChat;
Vue.prototype.$setChat = setChat;
Vue.prototype.$getStorage = getStorage;
Vue.prototype.$prePage = prePage;
Vue.prototype.$bcadd = bcadd;
Vue.prototype.$bcsub = bcsub;
Vue.prototype.$bcmul = bcmul;
Vue.prototype.$bcdiv = bcdiv;
Vue.prototype.$store = store;


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif